<%@ taglib uri="/WEB-INF/tld/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/tld/struts-bean.tld" prefix="bean" %>

<div id="content">
  <div id="main-wrapper">
    <h2 id="first"><bean:message key="signup.label.message"/></h2>
    <p class="right" id="acount">      
    </p>
    <div class="clearall">
    </div>
    
    <html:form action="/signup">
        
        <h3><c:out value="<%= (request.getAttribute("msgError"))== null ? "" : request.getAttribute("msgError") %>"></c:out></h3>
        
      <fieldset>
        <legend><bean:message key="signup.label.step1"/>
        </legend>
        <table class="formtable">
          <tbody>
            <tr>
              <th>
                <label for="full-name"><bean:message key="signup.label.name"/>
                </label>
              </th>
              <td>
              <html:errors property="name" />
              <html:text styleClass="textfield" property="name" />
                <!-- <input name="name" id="full-name" class="textfield" value="" type="text" /> -->
                </td>
              <td class="info"></td>
            </tr>
            <tr class="last">
              <th>
                <label for="user-email"><bean:message key="signup.label.email"/>
                </label>
              </th>
              <td>
              <html:errors property="email" />
              <html:text styleClass="textfield" property="email" />
                <!-- <input name="email" id="user-email" class="textfield" value="" type="text" /> -->
                </td>
              <td class="info"></td>
            </tr>
          </tbody>
        </table>
        </fieldset>
        <fieldset class="last">
          <legend><bean:message key="signup.label.step2" />
          </legend>
          <table class="formtable">
            <tbody>
              <tr>
                <th>
                  <label for="pick-username"><bean:message key="signup.label.username"/>                  
                  </label>
                </th>
                <td>
                <html:errors property="username"/>
                <html:text styleClass="textfield" property="username" />
<!--                   <input name="username" id="pick-username" class="textfield" maxlength="30" value="" type="text" />  -->
                  </td>
                <td class="info">
                	<bean:message key="signup.label.info.user" />
                </td>
              </tr>
              <tr>
                <th>
                  <label for="choose-password"><bean:message key="signup.label.password"/>
                  </label>
                </th>
                <td>
                <html:errors property="password"/>
                <html:password styleClass="textfield" property="password" />
<!--                   <input name="password" id="choose-password" class="textfield" value="" type="password" /> -->
</td>
                <td class="info">
                  	<bean:message key="signup.label.info.pwd" />
              </tr>
              <tr class="last">
                <th>
                  <label for="repeat-password">
                    <bean:message key="signup.label.repeat_password"/>
                  </label>
                </th>
                <td>
                <html:errors property="repeat_password"/>
                <html:password styleClass="textfield" property="repeat_password" />
<!--                   <input name="repeatpass" id="repeat-password" class="textfield" value="" type="password" /> 
                  <input type="hidden" name="regvalue" value="regUser" /> --> </td>
                <td class="info">
                  <bean:message key="signup.label.info.3" /></td>
              </tr>
            </tbody>
          </table>
          </fieldset>
          <table class="formtablesubmit">
            <tbody>
              <tr>
                <th>
               <!--  
                  <input name="submit-form" value="1" type="hidden" /> -->
                </th>
                <td>
                <html:submit styleClass="control" value="Signup" />
<!--                   <input name="submit" id="submit" src="./img/btn-signup.gif" alt="Sign me up!" type="image" />  --> </td>
                <td class="info">
                  Click the button and you're done!</td>
              </tr>
            </tbody>
          </table>
    </html:form>
  </div>
</div>